using OrderingSystem.Core.Entities;

namespace OrderingSystem.Core.Interfaces
{
    public interface INewsService
    {
        /// <summary>
        /// 获取所有新闻
        /// </summary>
        Task<IEnumerable<News>> GetNewsListAsync();

        /// <summary>
        /// 获取新闻详情
        /// </summary>
        Task<News> GetNewsAsync(long id);

        /// <summary>
        /// 创建新闻
        /// </summary>
        Task<News> CreateNewsAsync(News news);

        /// <summary>
        /// 更新新闻
        /// </summary>
        Task<News> UpdateNewsAsync(News news);

        /// <summary>
        /// 删除新闻
        /// </summary>
        Task DeleteNewsAsync(long id);

        /// <summary>
        /// 增加点击次数
        /// </summary>
        Task<News> IncrementClickCountAsync(long id);
    }
} 